﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    
}
@section Head
{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnExportm").click(function () {
                var yax = $("#canteenid :selected").val();
                var yy = $("#canteenyy :selected").text();
                var mm = $("#canteenmm :selected").val();
                var strulr = "ExeprotMaterialTongJi?yy=" + yy + "&mm=" + mm + "&yax=" + yax;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
        });
    </script>
}
<div id="container">
    <div id="mainContent">
        <div id="title" class="title">
            食堂仓库汇总</div>
        <div id="findDiv">
            <table>
                <tr>
                    <td>
                        食堂：
                    </td>
                    <td>@Html.DropDownList("canteenid",
                                        ViewData["GetYaxNode"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:158px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        年份：
                    </td>
                    <td>@Html.DropDownList("canteenyy",
                                   ViewData["yy"] as IEnumerable<SelectListItem>,
                                   new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        月份：
                    </td>
                    <td>@Html.DropDownList("canteenmm",
                                   ViewData["mm"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        <a id="btnExportm" class="button" href="javascript:void(0);"><span>导 出</span></a>
                    </td>
                </tr>
            </table>
        </div>
        <table id="SundriesTable_T" style="display: none;">
            <thead>
                <tr>
                    <th rowspan="2">
                        品名
                    </th>
                    <th rowspan="2">
                        单位
                    </th>
                    <th rowspan="2">
                        单价
                    </th>
                    <th colspan="2">
                        上月结余
                    </th>
                    <th colspan="2">
                        本月收入
                    </th>
                    <th colspan="2">
                        本月发出
                    </th>
                    <th colspan="2">
                        本月结余
                    </th>
                </tr>
                <tr>
                    <th>
                    </th>
                    <th>
                    </th>
                    <th>
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        金额
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        金额
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        金额
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        金额
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        合计
                    </td>
                    <td>
                    </td>
                    <td>
                        2635.365.23
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        合计
                    </td>
                    <td>
                    </td>
                    <td>
                        2635.365.23
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                </tr>
                <tr>
                    <td colspan="11">
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        主副调总合计
                    </td>
                    <td>
                    </td>
                    <td>
                        2635.365.23
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                    <td>
                    </td>
                    <td>
                        2145.325.26
                    </td>
                </tr>
                <tr>
                    <td colspan="11">
                    </td>
                </tr>
                
            </tbody>
        </table>
    </div>
</div>
